home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / cnumber.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.0 KB  |  127 lines

  1. head    1.3;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.3; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.3
  10. date    97.07.14.04.27.40;    author dlorre;    state Exp;
  11. branches;
  12. next    1.2;
  13.  
  14. 1.2
  15. date    96.08.28.20.08.37;    author dlorre;    state Exp;
  16. branches;
  17. next    1.1;
  18.  
  19. 1.1
  20. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  21. branches;
  22. next    ;
  23.  
  24.  
  25. desc
  26. @Oui.lib -- Object User Interface
  27. Projet créé en 1994
  28. Auteur: Dominique Lorre
  29. @
  30.  
  31.  
  32. 1.3
  33. log
  34. @*** empty log message ***
  35. @
  36. text
  37. @// $Id: cnumber.h 1.2 1996/08/28 20:08:37 dlorre Exp dlorre $
  38. #ifndef CLASS_CNUMBER_H
  39. #define CLASS_CNUMBER_H
  40.  
  41. #ifndef EXEC_TYPES_H
  42. #include <exec/types.h>
  43. #endif
  44.  
  45. #ifndef LIBRARIES_GADTOOLS_H
  46. #define PLACETEXT_LEFT  0x0001  /* Right-align text on left side */
  47. #endif
  48.  
  49. #ifndef CLASS_WINDOW_H
  50. class window ;
  51. #endif
  52.  
  53. #ifndef CLASS_GADGETLIST_H
  54. class gadgetlist ;
  55. #endif
  56.  
  57. #ifndef CLASS_GADGET_H
  58. #include "gadgets/gadget.h"
  59. #endif
  60.  
  61. const char  INSIDECNUMBER = 0 ;
  62. const char  RIGHTCNUMBER = 1 ;
  63. const char  BOTTOMCNUMBER = 2 ;
  64. const char  WIDTHCNUMBER = 4 ;
  65. const char  HEIGHTCNUMBER = 8 ;
  66.  
  67.  
  68. // ========================================================================
  69. // ==========================  CNUMBER CLASS ==============================
  70. // ========================================================================
  71.  
  72.  
  73. class cnumber : public gadget
  74. {
  75.     STRPTR      norm1 ;
  76.     STRPTR      norm2 ;
  77.     STRPTR      under ;
  78.  
  79.     IntuiText   *it1 ;
  80.     IntuiText   *it2 ;
  81.     IntuiText   *it3 ;
  82.  
  83.     TextFont    *font ;
  84.     TTextAttr   *underline ;
  85.     TTextAttr   *plain ;
  86. public:
  87.     cnumber(gadgetlist *gl,
  88.             void (window::*func)(gadget *, unsigned long, unsigned short),
  89.             const char* t, long val,
  90.             long border=FALSE, long place=PLACETEXT_LEFT,
  91.             char style=INSIDECNUMBER) ;
  92.     ~cnumber() ;
  93.     void set(LONG val) ;
  94.     void keystroke(BOOL shifted) ;
  95. };
  96.  
  97. #endif
  98. @
  99.  
  100.  
  101. 1.2
  102. log
  103. @support proportionnel
  104. @
  105. text
  106. @d1 1
  107. a1 1
  108. // $Id$
  109. d53 1
  110. a53 1
  111.             STRPTR t, long val,
  112. @
  113.  
  114.  
  115. 1.1
  116. log
  117. @Initial revision
  118. @
  119. text
  120. @d1 1
  121. d25 7
  122. d49 1
  123. d53 3
  124. a55 1
  125.             STRPTR titre, long val, long border=FALSE, long place=PLACETEXT_LEFT) ;
  126. @
  127.